package com.tencent.sr.iris.basic.mp.interfaces.request;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
public class GetUploadUrlRequest {

    public static final String SOURCE_COMMODITY = "COMMODITY";
    public static final String MEDIA_TYPE_PIC = "PIC";
    public static final String MEDIA_TYPE_VIDEO = "VIDEO";

    @ApiModelProperty("saasId, 前端不用传")
    private String saasId;

    @ApiModelProperty("用户id，前端不用传")
    private String uid;

    @NotNull(message = "无效的来源")
    @NotEmpty(message = "无效的来源")
    @ApiModelProperty("来源 COMMODITY 商品")
    private String source;

    @NotNull(message = "无效的媒体类型")
    @NotEmpty(message = "无效的媒体类型")
    @ApiModelProperty("媒体类型 PIC 图片 VIDEO 视频")
    private String mediaType;

    @ApiModelProperty("文件后缀名")
    @NotNull(message = "无效的文件后缀名")
    @NotEmpty(message = "无效的文件后缀名")
    private String fileSuffix;

}
